Basic Library for WPF and Silverlight | ComponentOne
C1.Silverlight Namespace / Trace Class / Assert Method / Assert(Boolean,String,String,Object[]) Method
The conditional expression to evaluate. If the condition is true, the specified message and the call stack are not displayed.
A message to display.
A composite format string that contains text intermixed with zero or more format items, which correspond to objects in the args array.
An object array that contains zero or more objects to format.

In This Topic
    Assert(Boolean,String,String,Object[]) Method
    In This Topic
    Checks for a condition and outputs the message and the call stack if the condition is false.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Sub Assert( _
       ByVal condition As Boolean, _
       ByVal message As String, _
       ByVal detailMessageFormat As String, _
       ByVal ParamArray args() As Object _
    ) 
    public static void Assert( 
       bool condition,
       string message,
       string detailMessageFormat,
       params object[] args
    )

    Parameters

    condition
    The conditional expression to evaluate. If the condition is true, the specified message and the call stack are not displayed.
    message
    A message to display.
    detailMessageFormat
    A composite format string that contains text intermixed with zero or more format items, which correspond to objects in the args array.
    args
    An object array that contains zero or more objects to format.
    See Also